//
//  TeaSelectClassOrSubjectCell.m
//  AttendenceSys
//
//  Created by ld on 16/1/28.
//  Copyright © 2016年 窦芳俊. All rights reserved.
//

#import "TeaSelectClassOrSubjectCell.h"

@implementation TeaSelectClassOrSubjectCell

- (void)awakeFromNib {
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self initCell];
    }
    return self;
}

- (void)initCell
{
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    _subClassLab = [[UILabel alloc] initWithFrame:CGRectMake(25, 10, [UIScreen mainScreen].bounds.size.width-44.5-25, 25)];
    [_subClassLab setBackgroundColor:[UIColor clearColor]];
    _subClassLab.font = [UIFont systemFontOfSize:16];
    [_subClassLab setTextAlignment:NSTextAlignmentLeft];
    _subClassLab.textColor = RGB(102, 102, 102);
    [self.contentView addSubview:_subClassLab];
    
    _claSeleImage = [[UIImageView alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width-44.5,16,19.5,13)];
    [_claSeleImage setImage:[UIImage imageNamed:@"ic_check"]];
    _claSeleImage.hidden = YES;
    [_claSeleImage setBackgroundColor:[UIColor clearColor]];
    [self.contentView addSubview:_claSeleImage];
    
    UIImageView* lineView = [[UIImageView alloc] initWithFrame:CGRectMake(0,SubClassCellHeight-1,[UIScreen mainScreen].bounds.size.width,1)];
    [lineView setBackgroundColor:RGB(240, 240, 240)];
    [self.contentView addSubview:lineView];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
